package com.iking.toolkit.formatdeal.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.File;

/**
 *
 * 功能描述:添加暗水印参数
 * @author: yfl
 * @date: 2025/8/4 17:53
 */
@Data
@Schema(description = "添加暗水印参数")
public class AddWatermarkToPdfDTO {

    @Schema(description = "文件url地址", required = true)
    @NotBlank(message = "文件url地址不能为空!")
    private String  url;

    @Schema(description = "水印内容", required = true)
    @NotBlank(message = "水印内容不能为空!")
    private String watermarkText;

    @Schema(description = "倾斜角度", required = true)
    @NotNull(message = "倾斜角度不能为空!")
    private Integer angle;

    @Schema(description = "字体大小", required = true)
    @NotNull(message = "字体大小不能为空!")
    private Integer fontSize;

    @Schema(description = "文件清晰度，72为默认，144一倍，216二倍清晰度", required = true)
    @NotNull(message = "文件清晰度不能为空!")
    private Integer dpi;
}
